﻿<UserControl x:Class="TextPlus.Web.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:TextPlus="clr-namespace:TextPlus;assembly=TextPlus" Width="300">
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Style x:Key="WhiteLinkStyle" TargetType="HyperlinkButton">
                <Setter Property="Foreground" Value="Green" />
            </Style>
        </Grid.Resources>
        <Border BorderBrush="Black" Cursor="Default" BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center" >
            <TextPlus:TextBlockPlus LinkStyle="{StaticResource WhiteLinkStyle}" TextWrapping="Wrap" FontWeight="Bold" FontSize="20" TextIndent="150" AutoHyperlinkingEnabled="True" LinkClicked="TextBlockPlus_LinkClicked">
                <TextPlus:Link NavigateUri="http://www.google.com" Text="This is a styled link text" /><Run>Now is the time for all goood citizens to come to the aid of their country if they so desire.</Run>
            </TextPlus:TextBlockPlus>
        </Border>
        <HyperlinkButton Content="Hello" Style="{StaticResource WhiteLinkStyle}" VerticalAlignment="Top" HorizontalAlignment="Left" />
    </Grid>
</UserControl>
